//@author A0105740R
package rightnow.parser.cmdline;

/**
 * A token contains token string and its tag.
 */
public class Token {
	private String tokenString;
	private TokenType tokenType;
	
	public Token(String tokenString) {
		this.tokenString = tokenString;
		this.tokenType = TokenType.UNDET;
	}
	
	public Token(String tokenString, TokenType tokenType) {
		this.tokenString = tokenString;
		this.tokenType = tokenType;
	}
	
	public String getTokenString() {
		return this.tokenString;
	}
	
	public void setTokenType(TokenType tokenType) {
		this.tokenType = tokenType;
	}

	public TokenType getTokenType() {
		return this.tokenType;
	}
}
